package com.douxg.learning.springboot.resttemplate.service.impl;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * @Description
 * @Auther douxg
 * @Date 2020/12/30 9:38
 */
@Service
@ConditionalOnProperty(value = "project.name", havingValue = "sub2")
public class Sub2ServiceImpl extends MainServiceImpl {
    @Override
    public String in() {
        return "我是子方法2";
    }
}
